import request from '@/utils/request'

// 查询报考专业信息列表
export function listExam_major(query) {
  return request({
    url: '/exam_major/exam_major/list',
    method: 'get',
    params: query
  })
}

// 查询报考专业信息详细
export function getExam_major(id) {
  return request({
    url: '/exam_major/exam_major/' + id,
    method: 'get'
  })
}

// 新增报考专业信息
export function addExam_major(data) {
  return request({
    url: '/exam_major/exam_major',
    method: 'post',
    data: data
  })
}

// 修改报考专业信息
export function updateExam_major(data) {
  return request({
    url: '/exam_major/exam_major',
    method: 'put',
    data: data
  })
}

// 删除报考专业信息
export function delExam_major(id) {
  return request({
    url: '/exam_major/exam_major/' + id,
    method: 'delete'
  })
}
